/* Ejercicio 4.10
   ejer4_10.c */
#include <stdio.h>

/* funcion main, el programa inicia aca */
int main( void )
{
    int n, counter, sum;
    float average;

    counter = 0;
    sum = 0;
    scanf( "%d", &n );

    while ( n != 9999 ) {
        ++counter;
        sum += n;
        scanf( "%d", &n );
    }

    if ( counter != 0 ) {
        average = ( float ) sum / counter;
        printf( "The average is: %.2f\n", average );
    }
    else {
        printf( "No input were entered\n" );
    }
	return 0;
} /* fin de la funcion main */
